<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>找回密码</title>
    <link rel="stylesheet" href="./css/style.css"/>
</head>

<body>
<div class="container">
    <h2>忘记密码</h2>
    <form id="forgotPasswordForm">
        <label>用户名：</label>
        <input type="text" id="username" required><br><br>
        <button type="button" onclick="getQuestion()">获取安全问题</button>
        <br><br>

        <label>安全问题：</label>
        <input type="text" id="question" disabled><br><br>
        <label>答案：</label>
        <input type="text" id="answer" required><br><br>

        <label>新密码：</label>
        <input type="password" id="newPassword" required><br><br>

        <button type="submit">重置密码</button>
    </form>
</div>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="./js/forgot.js"></script>
</body>

</html>